package com.kizuki.design.factory;

import org.springframework.stereotype.Component;

@Component("WechatPay")
public class WechatPayStrategy implements PayStrategy{

    @Override
    public double discountPayMoney(long originalPrice) {
        if (originalPrice > 100) {
            return originalPrice * 0.9;
        }
        return originalPrice * 0.97;
    }

}
